

data = [
	[10, 14, 9, 15],
	[7, 4, 8, 10],
	[6, 8, 4, 9],
	[8, 51, 10, 23]
]

found = False

for i in range(len(data)):
	row = data[i]
	for j,item in enumerate(row):
		col = [data[k][j] for k in range (len(data))]
		if item == min(col) and item == max(row):
			print(f"找到鞍点,位置为({i+1},{j+1}),值为{item}")
			found = True
	
if not found:
	print("不存在鞍点")

		
